package day6;
import java.util.Scanner;
public class day6 {
    public static void main(String[] args){
        Scanner scanner=new Scanner(System.in);
      System.out.println("请输入班级人数:");
         int num=scanner.nextInt();
          float count=0;
      for(int i=1;i<=num;i++) {
          System.out.println("第"+i+"学生的成绩:");

          double falg=scanner.nextDouble();
          if(falg<80){
              continue;
          }

          else{
              count++;
          }

      }
      //double sun = (count/num);
      //System.out.println("----->"+sun);
      System.out.println("80分以上的学生人数:"+count);
      System.out.println("80分以上的学生比例为:" +(count/num)*100+"%");
    }
}
